<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>管理员系统- 登录</title>
    <meta name="keywords" content="管理员系统">
    <meta name="description" content="管理员系统">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/manager/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/manager/css/font-awesome.min.css" rel="stylesheet">

    <link href="/static/manager/css/animate.min.css" rel="stylesheet">
    <link href="/static/manager/css/style.min.css" rel="stylesheet"><base target="_blank">
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">
<div style="width:100%;height:120px;"></div>
<div class="middle-box text-center loginscreen  animated fadeInDown">
    <div>
        <div>

            <h1 class="logo-name">管理系统</h1>

        </div>

        <form class="m-t">
            <div class="form-group">
                <input type="text" class="form-control" placeholder="用户名" required="" name="user_name">
            </div>
            <div class="form-group">
                <input type="password" class="form-control" placeholder="密码" required="" name="user_password">
            </div>
            <button type="button" class="btn btn-primary block full-width m-b" id="mlogin">登 录</button>

        </form>
    </div>
</div>
<script src="/static/manager/js/jquery.min.js"></script>
<script src="/static/manager/js/bootstrap.min.js"></script>
<script>
$(function () {
$("#mlogin").click(function () {
    var user_name=$("input[name='user_name']").val();
    var user_password=$("input[name='user_password']").val();
    $.post("/manager/Login/login",{user_name:user_name,user_password:user_password},function(result){
        if(result==200){
            window.location.href = "/manager";
        }else {
            alert(result);
        }

    });
})

})
</script>
</body>

</html>